package com.agileboot.attendance.domain.settlement.mapper;

import com.agileboot.attendance.domain.settlement.entity.AttSettlementDetailEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 结算单明细Mapper接口
 */
@Mapper
public interface AttSettlementDetailMapper extends BaseMapper<AttSettlementDetailEntity> {

    /**
     * 根据结算单ID查询明细列表
     *
     * @param settlementId 结算单ID
     * @return 明细列表
     */
    List<AttSettlementDetailEntity> selectDetailList(@Param("settlementId") Long settlementId);

    /**
     * 批量插入结算单明细
     *
     * @param list 明细列表
     * @return 影响行数
     */
    int batchInsert(@Param("list") List<AttSettlementDetailEntity> list);
} 